export * from './echarts'

export interface GraphData {
  partsVO: PartsVO
  faultPartsTopList: FaultPartsTopItem[]
  changeTrendMap: ChangeTrendMap
}

export interface PartsVO {
  dateString: string
  momRatio: string
  yoyBasis: string
  dateCount: string
  dateRate: string | null
  partsList: string[]
  faultCount: number
  totalPartsList: string[]
  totalFaultCount: number
  faultRate: string
}

export interface FaultPartsTopItem {
  params: object
  dateString: string
  momRatio: string
  yoyBasis: string
  dateCount: number
  dateRate: string
}

export interface ChangeTrendItem {
  dateString: string
  part: string
  count: number
  percentage: string
}

export interface ChangeTrendMap {
  [key: string]: ChangeTrendItem[]
}
